wayland: Also emit monitors-changed when monitors are unplugged
authorMatthias Clasen <mclasen@redhat.com>
Wed, 27 Mar 2013 01:53:41 +0000 (21:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 27 Mar 2013 01:53:41 +0000 (21:53 -0400)
gdk/wayland/gdkscreen-wayland.c

index cdfef56a8f1e22e5a18134c9fae2b121fa31a766..845ae141a0a4d47eddcb3db423f95f64d06007c3 100644 (file)
@@ -962,6 +962,9 @@ _gdk_wayland_screen_remove_output_by_id (GdkScreen *screen,
       if (wl_proxy_get_id ((struct wl_proxy *)monitor->output) == id)
         {
           g_ptr_array_remove (screen_wayland->monitors, monitor);
+
+          g_signal_emit_by_name (screen_wayland, "monitors-changed");
+          update_screen_size (screen_wayland);
           break;
         }
     }